package com.yanqu.road.logic.bussiness.statistics;

import com.yanqu.road.entity.statistics.RoleStatistics;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;

public class RoleStatisticsBusiness {

    public static RoleStatistics getRoleStatistics() {
        return DaoHelper.getRoleStatisticsDaoImpl().getRoleStatistics();
    }

    public static List<RoleStatistics> getRoleStatisticsList(long start, long end) {
        return DaoHelper.getRoleStatisticsDaoImpl().getRoleStatisticsList(start, end);
    }

    public static boolean addRoleStatistics(RoleStatistics data) {
        return DaoHelper.getRoleStatisticsDaoImpl().add(data);
    }

    public static boolean updateRoleStatistics(RoleStatistics data) {
        return DaoHelper.getRoleStatisticsDaoImpl().update(data);
    }

}
